<?php

use App\Models\Post;
use Faker\Generator as Faker;

$factory->define(Post::class, function (Faker $faker) {
    return [
        'title'=>$faker->sentence,
        'content'=>$faker->text,
        'created_at'=>$faker->dateTimeBetween($start_time='-10 days',$end_time='now'),
        'updated_at'=>$faker->dateTimeBetween($start_time='-10 days',$end_time='now'),
    ];
});
